package com.sys.midware.memcached;

import java.util.Collection;
import java.util.Map;

public interface IMemCachedService {

	public void put(String key, Object value) throws Exception;

	public void put(String key, Object value, int expiredTimeInSeconds)
			throws Exception;

	public <T> T get(String key) throws Exception;

	public void put(Map<? extends Object, ? extends Object> map)
			throws Exception;

	public void put(Map<? extends Object, ? extends Object> map,
			int expiredTimeInSeconds) throws Exception;

	public <T> Map<String, T> get(Collection<String> keys) throws Exception;

	public void remove(String key) throws Exception;

	public void remove(Collection<String> keys) throws Exception;
}
